package cn.majingjing.demo.aop.services;

import cn.majingjing.demo.aop.config.LogToken;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author JingjingMa
 * @date 2019/10/30 16:15
 */
@Service
public class LogService3 {
    Logger log = LoggerFactory.getLogger(LogService3.class);

    @Autowired
    LogService3 thisProxy;

    @LogToken
    public void method1() {
        log.info("hello method1");
    }

    @LogToken
    public void method2() {
        log.info("hello method2");
        thisProxy.method1();
    }


}
